package io.renren.modules.zhaopin.service.impl;

import io.renren.modules.zhaopin.dao.BackgroundItemDao;
import io.renren.modules.zhaopin.entity.BackgroundItemEntity;
import io.renren.modules.zhaopin.service.BackgroundItemService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

@Service("backgroundItemService")
public class BackgroundItemServiceImpl extends ServiceImpl<BackgroundItemDao, BackgroundItemEntity> implements BackgroundItemService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BackgroundItemEntity> page = this.page(
                new Query<BackgroundItemEntity>().getPage(params),
                new QueryWrapper<BackgroundItemEntity>()
        );

        return new PageUtils(page);
    }

}